<!-- (废弃) 确认收款 -->
<div class="float-confirm js_confirm_moneyDiv" style="z-index: 20000;display: none; width:auto;">
    <div class="float-confirm-con">
        <p style="font-size:18px;color:#23a18b;">输入收款备注</p>
        <div style="width:auto;height:1px;background:#CCC;margin-bottom:20px;"></div>
        <div style="width:500px;height:auto;margin-bottom:15px;">
            <table style="line-height:50px;" class="js_expressTable">
                <tr>
                    <td><span style="color:red;">*</span>收款人：</td>
                    <td style="min-width:400px;">
                        <input type="text" class="search-f-ipt1 js_confirm_money_name" name="" value="">
                    </td>
                </tr>
                <tr>
                    <td><span style="color:red;">*</span>收款时间：</td>
                    <td style="min-width:400px;">
                        <input type="text" class="search-f-ipt1 js_confirm_money_time" id="js_confirm_money_time"
                               name="" value="">
                    </td>
                </tr>
                <tr>
                    <td>备注：</td>
                    <td style="min-width:400px;">
                        <textarea name="confirm_money_note"
                                  class="add-f-area textarea_box js_confirm_money_note"></textarea>
                    </td>
                </tr>
            </table>
        </div>
        <div style="width:auto;height:1px;background:#CCC;margin-bottom:20px;"></div>
        <div class="float-confirm-btns" style="padding-bottom:30px;">
            <a id="js_confirm_moneyAllow" class="btn btn-success btn-sm left" href="javascript:void(0);">确定</a>
            <a class="btn btn-default btn-sm left js_cancel" href="javascript:void(0);">取消</a>
        </div>
    </div>
</div>
<script>
    (function ($) {
//触发收款按钮事件
        $('.js_payBtn').click(function () {
            var order_id = $(this).closest('tr').data('id');
            showConfirmDiv($('.js_confirm_moneyDiv'), order_id);
        });

        // 确认收款操作
        $('#js_confirm_moneyAllow').click(function () {
            var confirm_money_note = $.trim($('.js_confirm_money_note').val());
            var confirm_money_name = $.trim($('.js_confirm_money_name').val());
            var confirm_money_time = $.trim($('.js_confirm_money_time').val());

            var id = $('.js_confirm_moneyDiv').data('id');
            var params = {};
            params.id = id;

            if (!confirm_money_name) {
                alert('请填写收款人姓名!');
                return;
            }
            params.confirm_money_name = confirm_money_name;

            if (!confirm_money_time) {
                alert('请填写收款时间!');
                return;
            }
            params.confirm_money_time = confirm_money_time;

            if (confirm_money_note) {
                params.confirm_money_note = confirm_money_note;
            }
            showMask('正在提交中...', 1);
            $.post(
                    "{AnUrl('order/admin/confirm_pay')}",
                    params,
                    function (data) {
                        if (data.info != 'ok') {
                            showMsg(data.info);
                        }
                        location.href = location.href;
                    },
                    'json'
            );
        });
    })(jQuery);
</script>
<!-- /(废弃) 确认收款 -->